/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package LiveReservations.control.mocks;

import LiveReservations.control.info.RegisterBusinessInfo;

/**
 * Prosomoiwsh tou user story : Add new business Pernei ena RegisterBusinessInfo
 * kai xorizei pithana senaria.
 *
 * @author Alexei
 */
public class RegisterBusinessMock {

    /**
     * Kataxorisi neas epixeirisis Den pernei input giati exei hdh ginei sto
     * constructor
     *
     * @param businessInfo
     * @return boolean (success or failure)
     */
    public boolean submitBusiness(RegisterBusinessInfo businessInfo) {
        return !businessInfo.getBusiness().getName().equalsIgnoreCase("BusinessExists");
    }
}
